<html layout:decorator="public/form" xmlns:miguo="http://www.w3.org/1999/html">
<div layout:fragment="content">
	<form class="layui-form model-form" action="" style="width:80%;">
		<input name="id" type="hidden" th:value="${info['id']}?:0">
		<div class="layui-form-item">
			<label class="layui-form-label">头像：</label>
			<div class="layui-input-block" style="margin-left: 130px;">
				<div class="layui-upload-drag">
					<a href="javascript:void(0);">
						<img id="image_preview" th:src="${info['avatar']} ? ${info['avatar']} : '/static/assets/images/default_upload.png'" alt="上传图片" width="90" height="90">
					</a>
					<input name="image"  type="hidden" th:value="${info['avatar']}?:''">
				</div>
				<div style="margin-top:10px;">
					<button type="button" class="layui-btn" id="upload">
						<i class="layui-icon"></i>上传头像
					</button>
				</div>
				<div class="layui-form-mid layui-word-aux">建议尺寸：建议上传尺寸450x450</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">真实姓名：</label>
				<div class="layui-input-inline">
					<input name="realname" th:value="${info['realName']}" lay-verify="required" autocomplete="off" placeholder="请输入真实姓名" class="layui-input" type="text">
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">昵称：</label>
				<div class="layui-input-inline">
					<input name="nickname" th:value="${info['nickName']}" lay-verify="required" autocomplete="off" placeholder="请输入昵称" class="layui-input" type="text">
				</div>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-inline">
				<label class="layui-form-label">性别：</label>
				<div class="layui-input-inline">
					<select name="gender" id="">
						<option th:each="gender:${USER_GENDER_LIST}" th:value="${gender.key}" th:inline="text" th:selected="${info['gender']} == ${gender.key}">[(${gender.value})]</option>
					</select>
				</div>
			</div>
			<div class="layui-inline">
				<label class="layui-form-label">手机号码：</label>
				<div class="layui-input-inline">
					<input name="mobile" th:value="${info['phone']}" lay-verify="required|phone" placeholder="请输入手机号码" autocomplete="off" class="layui-input" type="tel">
				</div>
			</div>
		</div>
<!--		<div class="layui-form-item">-->
<!--			<div class="layui-inline">-->
<!--				<label class="layui-form-label">电子邮箱：</label>-->
<!--				<div class="layui-input-inline">-->
<!--					<input name="email" th:value="${info['email']}" lay-verify="required|email" placeholder="请输入邮箱" autocomplete="off" class="layui-input" type="text">-->
<!--				</div>-->
<!--			</div>-->
			
<!--		<div class="layui-form-item">-->
<!--			<div class="layui-inline">-->
<!--				<label class="layui-form-label">状态：</label>-->
<!--				<div class="layui-input-inline">-->
<!--					<input type="checkbox" lay-skin="switch" th:checked="${info['status']} == 1">-->
<!--				</div>-->
<!--			</div>-->
<!--		</div>-->

		<div class="layui-form-item" style="width: 625px;">
			<label class="layui-form-label">备注：</label>
			<div class="layui-input-block">
				<textarea name="note" placeholder="请输入备注" class="layui-textarea" th:text="${info['note']}"></textarea>
			</div>
		</div>
		<div class="layui-form-item text-center model-form-footer">
			<button class="layui-btn" lay-filter="submitForm" lay-submit="">立即保存</button>
			<button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">关闭</button>
		</div>
	</form>
</div>
</html>